﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'proc_cm_DeleteSiteMapNode')
BEGIN
    PRINT 'Dropping Procedure proc_cm_DeleteSiteMapNode'
    DROP  Procedure  proc_cm_DeleteSiteMapNode
END
GO

PRINT 'Creating Procedure proc_cm_DeleteSiteMapNode'
GO

CREATE PROCEDURE [dbo].[proc_cm_DeleteSiteMapNode]
	@pNodeId uniqueidentifier
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [dbo].[tbl_sitemap]
	WHERE [node_id] = @pNodeId
END
GO

GRANT EXEC ON dbo.proc_cm_DeleteSiteMapNode TO PUBLIC
GO
